<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>

        var dic = {
            name: '孙悟空',
            age: 18,
            sex: '男'
        }

        for (var i in dic){
            console.log(dic[i])
        }
        //
        // var dic2 = new Object()
        // dic.name = '孙悟空'
        // // console.log(dic)
        // console.log(typeof dic)

        // var  a = [1,3,2,4,6,87,6789]
        // for (var i in a){
        //     console.log(a[i])
        // }

    </script>
</head>
<body>

</body>
</html>